<?php
use yii\bootstrap\Modal;
use yii\helpers\Html;
use yii\helpers\Url;

/* @var $this yii\web\View */
/* @var $model backend\models\JjrUserProject */

$this->title = '更新客户';
$this->params['breadcrumbs'][] = ['label' => 'Jjr User Projects', 'url' => ['index']];
$this->params['breadcrumbs'][] = ['label' => $model->id, 'url' => ['view', 'id' => $model->id]];
$this->params['breadcrumbs'][] = 'Update';
?>
<div class="jjr-user-project-update">

    <h1><?= Html::encode($this->title) ?></h1>

    <?= $this->render('_form', [
        'model' => $model,
    ]) ?>


</div>


<?php
//Modal::begin([
//    'header'=>'<h4>项目满足结佣条件,是否进行结佣?</h4>',
//    'id'=>'create-modal',
//    'size'=>'modal-lg',
//]);
//
//echo "<div id='modalContent'></div>";
//Modal::end();
//$url = Url::toRoute(['product/view', 'id' => 42]);
//$requestUrl = Url::toRoute(['jjr-user-commission/create','userProjectId'=>$model->id]);
?>

<!-- 定义数据块 -->
<?php $this->beginBlock('test'); ?>
jQuery(document).ready(function() {
highlight_subnav('jjr-user-project/index'); //子导航高亮
});
<?php $this->endBlock() ?>
<!-- 将数据块 注入到视图中的某个位置 -->
<?php $this->registerJs($this->blocks['test'], \yii\web\View::POS_END); ?>





